.router-demo {
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;

  h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px 15px 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      color: white;
    }

    &:active {
      transform: translateY(-1px);
    }
  }

  .nav-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 10px 15px 10px;

    &:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    &:active {
      transform: translateY(-1px);
    }

    // 为不同的按钮添加不同颜色
    &:nth-child(4) {
      background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    }

    &:nth-child(5) {
      background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 1.5rem;
    margin: 1rem;

    h3 {
      font-size: 1.5rem;
    }

    .nav-link,
    .nav-button {
      padding: 12px 20px;
      margin: 0 5px 10px 5px;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 480px) {
    .nav-link,
    .nav-button {
      display: block;
      width: 80%;
      margin: 0 auto 15px auto;
    }
  }
}
